﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FitnessClubManager.GUI
{
    public static class DialogUtils
    {
        public static void ShowMessage(string message)
        {
            MessageBox.Show(message, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static void ShowMessage(string stFormat, params object[] args)
        {
            var msg = string.Format(stFormat, args);
            MessageBox.Show(msg, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static void ShowError(string message)
        {
            MessageBox.Show(message, "Chú ý", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static DialogResult ShowYesNo(string message, params object[] args)
        {
            message = string.Format(message, args);
            return MessageBox.Show(message, "Chú ý", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
